package cm.hyb.mapper;
import java.util.List;
import java.util.Map;

//import org.apache.ibatis.annotations.Delete;
//import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Select;
//import org.apache.ibatis.annotations.Update;

import cm.hyb.Controller.model.Employee;

@Mapper
public interface EmployeeMapper {

//	@Select("select * from employee where id = 5")
	public Employee finAll();
	
	public Employee finById(int id);
	
//	@Select("select id,u_name,u_phone,u_age from employee ")
	public List<Employee> finAlls();

//	@Insert("insert into employee (u_name,u_phone,u_age) values (#{name},#{phone},#{age})")
	public Long insert(Employee employee);

//	@Update("Update employee set u_name=#{name},u_phone=#{phone},u_age=#{age} where id = #{id}")
	public Boolean update(Map<String, Object> map);

//	@Delete("delete from employee where id = #{id}")
	public Boolean delete(Map<String, Object> map);

	
	
}
